//
//  ZNYAxisView.h
//  ZNChart
//
//  Created by Yim on 16/9/24.
//  Copyright © 2016年 LQ. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZNYAxisView : UIView

/**  *  Y轴字段说明标题    */
@property (nonatomic , copy) NSString *yAxisTitle;
/**  *  Y轴最大值    */
@property (nonatomic , assign) CGFloat yAxisMaxValue;

/**  *  y轴分为几段    */
@property (nonatomic , assign) int yAxisNumber;
/**  y轴文字与坐标轴间隙 */
@property (assign, nonatomic) CGFloat yAxisTextGap;
/**
 *  x轴文字与坐标轴间隙
 */
@property (assign, nonatomic) CGFloat xAxisTextGap;

/**
 *  顶部空白区域
 */
@property (assign, nonatomic) CGFloat topMargin;
/** *  文字大小 */
@property (strong, nonatomic) UIFont *textFont;
/** *  文字颜色 */
@property (strong, nonatomic) UIColor *textColor;
/**
 *  坐标轴颜色
 */
@property (strong, nonatomic) UIColor *axisColor;
/**
 *  是否添加百分号
 */
@property (assign, nonatomic, getter=isPercent) BOOL percent;

/**
 *  视图的背景颜色
 */
@property (strong, nonatomic) UIColor *backColor;

- (void) draw;

@end
